// 配置单独页面----跳转最外层的路由
import Layout from '@/page/layout/layout.vue';
import RenNing from '@/page/layout/index.vue';
const routes = [
  {
    path: '/login',
    name: '登录',
    meta: { showtab: false },
    component: () => import(/* webpackChunkName: "about" */ '../page/login/index.vue'),
  },
  {
    path: '/',
    redirect: '/RenNing/index',
  },
  {
    path: '/RenNing',
    component: RenNing,
    meta: { keepAlive: true, isAuth: true, showtab: true, closable: false },
    children: [
      {
        path: 'index',
        name: '首页',
        meta: { keepAlive: true, isAuth: false, showtab: true, closable: true },
        component: () => import(/* webpackChunkName: "Home" */ '../views/Home.vue'),
      },
      {
        path: 'ceshi',
        name: '测试',
        meta: { keepAlive: true, isAuth: true, showtab: true, closable: true },
        component: () => import(/* webpackChunkName: "second" */ '../views/Home.vue'),
      },
      {
        path: '/RenNing/qwe',
        component: Layout,
        meta: { keepAlive: true },
        children: [
          {
            path: '/RenNing/qwe/asd',
            component: Layout,
            meta: { keepAlive: true },
            children: [
              {
                path: '/RenNing/qwe/asd/zxc',
                component: import(/* webpackChunkName: "RenNing" */ '../views/c.vue'),
                meta: { keepAlive: true },
                children: [],
              },
            ],
          },
        ],
      },
    ],
  },
  {
    path: '/System',
    component: () => import(/* webpackChunkName: "RenNing" */ '@/page/layout'),
    children: [
      {
        path: 'devset/funmod',
        name: '功能模块定义',
        meta: { isAuth: true },
        component: () => import(/* webpackChunkName: "about" */ '../views/About.vue'),
      },
      {
        path: 'ceshi',
        name: '测试',
        meta: { isAuth: true },
        component: () => import(/* webpackChunkName: "about" */ '../views/Home.vue'),
      },
    ],
  },
];

export default routes;
